package com.caocaog.market.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.caocaog.market.entity.InformationReply;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface InformationReplyService extends IService<InformationReply> {

    IPage<InformationReply> queryInformationReplyPage(Page<InformationReply> page, InformationReply informationReply);

    String addInformationReply(InformationReply informationReply);

    int deleteInformationReplyById(String id);

    int deleteBatchInformationReplyByIds(List<String> ids);

    /**
     * 根据信息发布id 删除评论
     * @param infoId 信息发布id
     * @return count
     */
    int deleteInformationReplyByInfoId(String infoId);

    /**
     * 根据信息发布ids 批量删除评论
     * @param infoIds 信息发布ids
     * @return count
     */
    int deleteBatchInformationReplyByInfoIds(List<String> infoIds);

}
